package org.jeecg.modules.register.service.impl;

import org.jeecg.modules.register.entity.AgencyLegalEmployees;
import org.jeecg.modules.register.mapper.AgencyLegalEmployeesMapper;
import org.jeecg.modules.register.mapper.AgencyLegalFileMapper;
import org.jeecg.modules.register.service.IAgencyLegalEmployeesService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: agency_legal_employees
 * @Author: jeecg-boot
 * @Date:   2024-12-17
 * @Version: V1.0
 */
@Service
public class AgencyLegalEmployeesServiceImpl extends ServiceImpl<AgencyLegalEmployeesMapper, AgencyLegalEmployees> implements IAgencyLegalEmployeesService {


    @Resource
    public AgencyLegalFileMapper agencyLegalFileMapper;


    @Resource
    public AgencyLegalEmployeesMapper agencyLegalEmployeesMapper;

    @Override
    public void add(AgencyLegalEmployees agencyLegalEmployees) {

        agencyLegalEmployeesMapper.insert(agencyLegalEmployees);
        //file 表里插入两条数据
        agencyLegalFileMapper.insertEmployeesInitFile(agencyLegalEmployees);
    }
}
